import time
import os

utc_offset = int(time.localtime().tm_gmtoff / 60 / 60)  # 如果服务器在上海，那么utc_offset=8
root_path = os.path.abspath(os.path.dirname(__file__))
# 连接交易所默认配置
#proxy = {}
proxy = {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}
# 交易所配置
# timeout时间
exchange_timeout = 2000  # 2s
BINANCE_CONFIG = {
    'apiKey': 'IzRPUPBNObX3TWwDJTX4INhjMbchGfAlL9vE1qwc3aH109s8OUP7I9oOF5mH0foY',
    'secret': 'Z206zQQFjN17Ef4L52yHb39MReM5LeUDzYeXoAUbJnmaTA7FSgcWnlx00zsjHyDY',
    'timeout': exchange_timeout,
    'rateLimit': 10,
    'verbose': False,
    'hostname': 'fapi.binance.com',
    'enableRateLimit': False}